/*
 * @Author: your name
 * @Date: 2021-09-14 14:56:43
 * @LastEditTime: 2021-12-10 19:47:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \jinfeng_up\vue.config.js
 */
const path = require('path')

module.exports = {
    publicPath: process.env.NODE_ENV === 'production' ? '' : '/',
    devServer: {
        open: true,
        host: '0.0.0.0',
        port: '8080'
        // proxy: {
        //     '/': {
        //         wa: false,
        //         target: 'http://10.1.40.210:30909',
        //         changeOrigin: true,
        //         pathRewrite: {
        //             '^/': ''
        //         }
        //     }
        // }
    },
    // css: {
    //   requireModuleExtension: true,
    //   loaderOptions: {
    //     sass: {
    //       prependData: `@import "~@/assets/styles/reset.scss";`,
    //     },
    //   },
    // },
    configureWebpack: {
        resolve: {
            alias: {
                '@': path.join(__dirname, '.', 'src')
            }
        }
    }
}
